<template>
  <div class="page-header">
    <div class="header-left">
      <h1 class="header-title">{{ title }}</h1>
      <p v-if="subtitle" class="header-subtitle">{{ subtitle }}</p>
    </div>
    <div class="header-actions">
      <slot name="actions"></slot>
    </div>
  </div>
</template>

<script setup>
defineProps({
  title: {
    type: String,
    required: true
  },
  subtitle: {
    type: String,
    default: ''
  }
})
</script>

<style scoped>
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px 0;
}

.header-left {
  display: flex;
  flex-direction: column;
}

.header-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

.header-subtitle {
  font-size: 13px;
  color: #909399;
  margin: 5px 0 0 0;
  padding: 0;
  line-height: 1.2;
}

.header-actions {
  display: flex;
  align-items: center;
}
</style> 